package com.hpxx.ylzswl.views;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * 无滚动条的GridView, 可与ScrollView一起使用
 * 云码科技.All rights reserved
 * @ClassName NoScrollingGridView
 * @TitleName 扩展GridView
 * @author LuoXiang
 * @Data 2016-8-31 上午11:08:51
 */
public class NoScrollingGridView extends GridView {
	public NoScrollingGridView(Context context) {
		super(context);

	}

	public NoScrollingGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);
	}
}